package io.renren.modules.generator.service.impl;

import io.renren.modules.generator.entity.SpringLambEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.WarnDao;
import io.renren.modules.generator.entity.WarnEntity;
import io.renren.modules.generator.service.WarnService;



@Service("warnService")
public class WarnServiceImpl implements WarnService {
	@Autowired
	private WarnDao warnDao;
	
	@Override
	public WarnEntity queryObject(Integer id){
		return warnDao.queryObject(id);
	}
	
	@Override
	public List<WarnEntity> queryList(Map<String, Object> map){return warnDao.queryList(map);}

	@Override
	public List<WarnEntity> warnList(Map<String, Object> map){return warnDao.warnList(map);}

	@Override
	public int warnTotal(Map<String, Object> map){
		return warnDao.warnTotal(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return warnDao.queryTotal(map);
	}
	
	@Override
	public void save(WarnEntity warn){
		warnDao.save(warn);
	}
	
	@Override
	public void update(WarnEntity warn){
		warnDao.update(warn);
	}
	
	@Override
	public void delete(Integer id){
		warnDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		warnDao.deleteBatch(ids);
	}
	
}
